/**
 * 
 */
package clids.ex2.filters;

import java.io.File;
import java.text.ParseException;

import clids.ex2.common.ToolBox;

/**
 * @author Li0r
 * 
 */

public class SuffixFilter extends AbstractFilter {


	public SuffixFilter(String params) {
		super(params);

	}

	@Override
	public boolean isValid(String file) {
		File fileInfo = new File(file);
		return (fileInfo.getName().endsWith(parameters[0]));
	}

}
